﻿@model PlantHire.PlantMachine

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>PlantMachine</legend>

        @Html.HiddenFor(model => model.PlantMachineId)

        <div class="editor-label">
            @Html.LabelFor(model => model.CompanyId, "Company")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CompanyId", String.Empty)
            @Html.ValidationMessageFor(model => model.CompanyId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SizeModelId, "SizeModel")
        </div>
        <div class="editor-field">
            @Html.DropDownList("SizeModelId", String.Empty)
            @Html.ValidationMessageFor(model => model.SizeModelId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LocationId, "Location")
        </div>
        <div class="editor-field">
            @Html.DropDownList("LocationId", String.Empty)
            @Html.ValidationMessageFor(model => model.LocationId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Model)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Model)
            @Html.ValidationMessageFor(model => model.Model)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Year)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Year)
            @Html.ValidationMessageFor(model => model.Year)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MSS)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MSS)
            @Html.ValidationMessageFor(model => model.MSS)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FleetSize)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FleetSize)
            @Html.ValidationMessageFor(model => model.FleetSize)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Comment)
            @Html.ValidationMessageFor(model => model.Comment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WetDryHire)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WetDryHire)
            @Html.ValidationMessageFor(model => model.WetDryHire)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
